
let obj = {};
Object.defineProperty(obj,'name',{  
    configurable: true,
    enumerable: true,
    set(newVal){
        console.log(newVal)
    },
    get(){
        return '111';
    }
});
obj.name = 222;

for(let key in obj){
    console.log(obj[key]);
}
console.log(obj.name);

